<!DOCTYPE html>
<html lang="en">
  <head>
    <title>AlamofireExtension Extension Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset="utf-8">
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>

    <a name="//apple_ref/swift/Extension/AlamofireExtension" class="dashAnchor"></a>

    <a title="AlamofireExtension Extension Reference"></a>

    <header class="header">
      <p class="header-col header-col--primary">
        <a class="header-link" href="../index.html">
          AlamofireImage 4.2.0 Docs
        </a>
         (77% documented)
      </p>
    
      <p class="header-col--secondary">
        <form role="search" action="../search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>
      </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="https://github.com/Alamofire/AlamofireImage">
            <img class="header-icon" src="../img/gh.png"/>
            View on GitHub
          </a>
        </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="dash-feed://https%3A%2F%2Falamofire.github.io%2FAlamofireImage%2Fdocsets%2FAlamofireImage.xml">
            <img class="header-icon" src="../img/dash.png"/>
            Install in Dash
          </a>
        </p>
    </header>

    <p class="breadcrumbs">
      <a class="breadcrumb" href="../index.html">AlamofireImage Reference</a>
      <img class="carat" src="../img/carat.png" />
      AlamofireExtension Extension Reference
    </p>

    <div class="content-wrapper">
      <nav class="navigation">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/AutoPurgingImageCache.html">AutoPurgingImageCache</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/ImageDownloader.html">ImageDownloader</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/ImageDownloader/DownloadPrioritization.html">– DownloadPrioritization</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/RequestReceipt.html">RequestReceipt</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/AFIError.html">AFIError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/AlamofireExtension.html">AlamofireExtension</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/DataRequest.html">DataRequest</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/DataRequest.html">DataRequest</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UIButton.html">UIButton</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UIImage.html">UIImage</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UIImageView.html">UIImageView</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UIImageView/ImageTransition.html">– ImageTransition</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/CompositeImageFilter.html">CompositeImageFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/CoreImageFilter.html">CoreImageFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/ImageCache.html">ImageCache</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/ImageFilter.html">ImageFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/ImageRequestCache.html">ImageRequestCache</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/Roundable.html">Roundable</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/Sizable.html">Sizable</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/AspectScaledToFillSizeCircleFilter.html">AspectScaledToFillSizeCircleFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/AspectScaledToFillSizeFilter.html">AspectScaledToFillSizeFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/AspectScaledToFillSizeWithRoundedCornersFilter.html">AspectScaledToFillSizeWithRoundedCornersFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/AspectScaledToFitSizeFilter.html">AspectScaledToFitSizeFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/BlurFilter.html">BlurFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/CircleFilter.html">CircleFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/DynamicCompositeImageFilter.html">DynamicCompositeImageFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/DynamicImageFilter.html">DynamicImageFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/RoundedCornersFilter.html">RoundedCornersFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/ScaledToSizeCircleFilter.html">ScaledToSizeCircleFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/ScaledToSizeFilter.html">ScaledToSizeFilter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/ScaledToSizeWithRoundedCornersFilter.html">ScaledToSizeWithRoundedCornersFilter</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:14AlamofireImage9AFIResulta">AFIResult</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:14AlamofireImage16AnimationOptionsa">AnimationOptions</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/Image">Image</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:14AlamofireImage0B0a">Image</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">

        <section class="section">
          <div class="section-content top-matter">
            <h1>AlamofireExtension</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">AlamofireExtension</span> <span class="k">where</span> <span class="kt">ExtendedType</span><span class="p">:</span> <span class="kt">UIButton</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">AlamofireExtension</span> <span class="k">where</span> <span class="kt">ExtendedType</span><span class="p">:</span> <span class="kt">UIImage</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">AlamofireExtension</span> <span class="k">where</span> <span class="kt">ExtendedType</span><span class="p">:</span> <span class="kt">UIImageView</span></code></pre>

                </div>
              </div>
            
          </div>
        </section>

        <section class="section">
          <div class="section-content">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Properties"></a>
                <a name="//apple_ref/swift/Section/Properties" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Properties"></a>
                  <h3 class="section-name"><p>Properties</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE15imageDownloaderAD0cF0CSgvp"></a>
                    <a name="//apple_ref/swift/Property/imageDownloader" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE15imageDownloaderAD0cF0CSgvp">imageDownloader</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The instance image downloader used to download all images. If this property is <code>nil</code>, the <code>UIButton</code> will
fallback on the <code><a href="../Extensions/AlamofireExtension.html#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06sharedC10DownloaderAD0cF0CvpZ">sharedImageDownloader</a></code> for all downloads. The most common use case for needing to use a
custom instance image downloader is when images are behind different basic auth credentials.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">imageDownloader</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">nonmutating</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06sharedC10DownloaderAD0cF0CvpZ"></a>
                    <a name="//apple_ref/swift/Variable/sharedImageDownloader" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06sharedC10DownloaderAD0cF0CvpZ">sharedImageDownloader</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The shared image downloader used to download all images. By default, this is the default <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>
instance backed with an <code><a href="../Classes/AutoPurgingImageCache.html">AutoPurgingImageCache</a></code> which automatically evicts images from the cache when the memory
capacity is reached or memory warning notifications occur. The shared image downloader is only used if the
<code><a href="../Extensions/AlamofireExtension.html#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE15imageDownloaderAD0cF0CSgvp">imageDownloader</a></code> is <code>nil</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">sharedImageDownloader</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Image%20Downloads"></a>
                <a name="//apple_ref/swift/Section/Image Downloads" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Image%20Downloads"></a>
                  <h3 class="section-name"><p>Image Downloads</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE03setC03for3url8cacheKey011placeholderC010serializer6filter8progress0M5Queue10completionySo14UIControlStateV_10Foundation3URLVSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataU0VyAxD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setImage(for:url:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE03setC03for3url8cacheKey011placeholderC010serializer6filter8progress0M5Queue10completionySo14UIControlStateV_10Foundation3URLVSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataU0VyAxD8AFIErrorOGcSgtF">setImage(for:<wbr>url:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL and sets it once the request is finished.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setImage</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">,</span>
                     <span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span>
                     <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                     <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>state</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The control state of the button to set the image on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>url</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL used for your image request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If <code>nil</code>, the
                          image will not change its image until the image request finishes. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>. Defaults
                          to <code>nil</code> which will fall back to the instance <code>imageResponseSerializer</code> set on
                          the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is finished.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the request.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure takes a
                          single response value containing either the image or the error that occurred. If
                          the image was returned from the image cache, the response will be <code>nil</code>. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE03setC03for10urlRequest8cacheKey011placeholderC010serializer6filter8progress0N5Queue10completionySo14UIControlStateV_AA21URLRequestConvertible_pSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataV0VyAvD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setImage(for:urlRequest:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE03setC03for10urlRequest8cacheKey011placeholderC010serializer6filter8progress0N5Queue10completionySo14UIControlStateV_AA21URLRequestConvertible_pSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataV0VyAvD8AFIErrorOGcSgtF">setImage(for:<wbr>urlRequest:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL and sets it once the request is finished.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setImage</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">,</span>
                     <span class="nv">urlRequest</span><span class="p">:</span> <span class="kt">URLRequestConvertible</span><span class="p">,</span>
                     <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                     <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>state</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The control state of the button to set the image on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>urlRequest</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If <code>nil</code>, the
                          image will not change its image until the image request finishes. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>. Defaults
                          to <code>nil</code> which will fall back to the instance <code>imageResponseSerializer</code> set on
                          the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is finished.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the request.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure takes a
                          single response value containing either the image or the error that occurred. If
                          the image was returned from the image cache, the response will be <code>nil</code>. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06cancelC7Request3forySo14UIControlStateV_tF"></a>
                    <a name="//apple_ref/swift/Method/cancelImageRequest(for:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06cancelC7Request3forySo14UIControlStateV_tF">cancelImageRequest(for:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Cancels the active download request for the image, if one exists.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">cancelImageRequest</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Background%20Image%20Downloads"></a>
                <a name="//apple_ref/swift/Section/Background Image Downloads" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Background%20Image%20Downloads"></a>
                  <h3 class="section-name"><p>Background Image Downloads</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE013setBackgroundC03for3url8cacheKey011placeholderC010serializer6filter8progress0N5Queue10completionySo14UIControlStateV_10Foundation3URLVSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataV0VyAxD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setBackgroundImage(for:url:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE013setBackgroundC03for3url8cacheKey011placeholderC010serializer6filter8progress0N5Queue10completionySo14UIControlStateV_10Foundation3URLVSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataV0VyAxD8AFIErrorOGcSgtF">setBackgroundImage(for:<wbr>url:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL and sets it once the request is finished.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setBackgroundImage</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">,</span>
                               <span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span>
                               <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                               <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>state</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The control state of the button to set the image on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>url</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL used for the image request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If <code>nil</code>, the
                          background image will not change its image until the image request finishes.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>. Defaults
                          to <code>nil</code> which will fall back to the instance <code>imageResponseSerializer</code> set on
                          the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is finished.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the request.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure takes a
                          single response value containing either the image or the error that occurred. If
                          the image was returned from the image cache, the response will be <code>nil</code>. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE013setBackgroundC03for10urlRequest8cacheKey011placeholderC010serializer6filter8progress0O5Queue10completionySo14UIControlStateV_AA21URLRequestConvertible_pSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataW0VyAvD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setBackgroundImage(for:urlRequest:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE013setBackgroundC03for10urlRequest8cacheKey011placeholderC010serializer6filter8progress0O5Queue10completionySo14UIControlStateV_AA21URLRequestConvertible_pSSSgSo7UIImageCSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCyAA04DataW0VyAvD8AFIErrorOGcSgtF">setBackgroundImage(for:<wbr>urlRequest:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL request and sets it once the request is finished.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setBackgroundImage</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">,</span>
                               <span class="nv">urlRequest</span><span class="p">:</span> <span class="kt">URLRequestConvertible</span><span class="p">,</span>
                               <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                               <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                               <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>state</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The control state of the button to set the image on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>urlRequest</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If <code>nil</code>, the
                          background image will not change its image until the image request finishes.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>. Defaults
                          to <code>nil</code> which will fall back to the instance <code>imageResponseSerializer</code> set on
                          the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is finished.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the request.
                          Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure takes a
                          single response value containing either the image or the error that occurred. If
                          the image was returned from the image cache, the response will be <code>nil</code>. Defaults
                          to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE016cancelBackgroundC7Request3forySo14UIControlStateV_tF"></a>
                    <a name="//apple_ref/swift/Method/cancelBackgroundImageRequest(for:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE016cancelBackgroundC7Request3forySo14UIControlStateV_tF">cancelBackgroundImageRequest(for:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Cancels the active download request for the background image, if one exists.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">cancelBackgroundImageRequest</span><span class="p">(</span><span class="k">for</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage12ControlStatea">ControlState</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Available%20where%20%60ExtendedType%60%3A%20%60UIImage%60"></a>
                <a name="//apple_ref/swift/Section/Available where `ExtendedType`: `UIImage`" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Available%20where%20%60ExtendedType%60%3A%20%60UIImage%60"></a>
                  <h3 class="section-name"><p>Available where <code>ExtendedType</code>: <code>UIImage</code></p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE010threadSafeC04withAFSg10Foundation4DataV_tFZ"></a>
                    <a name="//apple_ref/swift/Method/threadSafeImage(with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE010threadSafeC04withAFSg10Foundation4DataV_tFZ">threadSafeImage(with:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes and returns the image object with the specified data in a thread-safe manner.</p>

<p>It has been reported that there are thread-safety issues when initializing large amounts of images
simultaneously. In the event of these issues occurring, this method can be used in place of
the <code>init?(data:)</code> method.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">threadSafeImage</span><span class="p">(</span><span class="n">with</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>data</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The data object containing the image data.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An initialized <code>UIImage</code> object, or <code>nil</code> if the method failed.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE010threadSafeC04with5scaleAFSg10Foundation4DataV_12CoreGraphics7CGFloatVtFZ"></a>
                    <a name="//apple_ref/swift/Method/threadSafeImage(with:scale:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE010threadSafeC04with5scaleAFSg10Foundation4DataV_12CoreGraphics7CGFloatVtFZ">threadSafeImage(with:<wbr>scale:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes and returns the image object with the specified data and scale in a thread-safe manner.</p>

<p>It has been reported that there are thread-safety issues when initializing large amounts of images
simultaneously. In the event of these issues occurring, this method can be used in place of
the <code>init?(data:scale:)</code> method.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">threadSafeImage</span><span class="p">(</span><span class="n">with</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">,</span> <span class="nv">scale</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>data</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The data object containing the image data.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>scale</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0
               results in an image whose size matches the pixel-based dimensions of the image. Applying a
               different scale factor changes the size of the image as reported by the size property.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An initialized <code>UIImage</code> object, or <code>nil</code> if the method failed.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE10isInflatedSbvp"></a>
                    <a name="//apple_ref/swift/Property/isInflated" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE10isInflatedSbvp">isInflated</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns whether the image is inflated.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isInflated</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">nonmutating</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE7inflateyyF"></a>
                    <a name="//apple_ref/swift/Method/inflate()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE7inflateyyF">inflate()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Inflates the underlying compressed image data to be backed by an uncompressed bitmap representation.</p>

<p>Inflating compressed image formats (such as PNG or JPEG) can significantly improve drawing performance as it
allows a bitmap representation to be constructed in the background rather than on the main thread.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">inflate</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE22containsAlphaComponentSbvp"></a>
                    <a name="//apple_ref/swift/Property/containsAlphaComponent" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE22containsAlphaComponentSbvp">containsAlphaComponent</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns whether the image contains an alpha component.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">containsAlphaComponent</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE8isOpaqueSbvp"></a>
                    <a name="//apple_ref/swift/Property/isOpaque" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE8isOpaqueSbvp">isOpaque</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns whether the image is opaque.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isOpaque</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE11imageScaled2to5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF"></a>
                    <a name="//apple_ref/swift/Method/imageScaled(to:scale:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE11imageScaled2to5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF">imageScaled(to:<wbr>scale:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image scaled to the specified size.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageScaled</span><span class="p">(</span><span class="n">to</span> <span class="nv">size</span><span class="p">:</span> <span class="kt">CGSize</span><span class="p">,</span> <span class="nv">scale</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>size</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The size to use when scaling the new image.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>scale</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The scale to set for the new image. Defaults to <code>nil</code> which will maintain the current image scale.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The new image object.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE17imageAspectScaled5toFit5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF"></a>
                    <a name="//apple_ref/swift/Method/imageAspectScaled(toFit:scale:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE17imageAspectScaled5toFit5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF">imageAspectScaled(toFit:<wbr>scale:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image scaled from the center while maintaining the aspect ratio to fit within
a specified size.</p>

<p>The resulting image contains an alpha component used to pad the width or height with the necessary transparent
pixels to fit the specified size. In high performance critical situations, this may not be the optimal approach.
To maintain an opaque image, you could compute the <code>scaledSize</code> manually, then use the <code>af.imageScaledToSize</code>
method in conjunction with a <code>.Center</code> content mode to achieve the same visual result.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageAspectScaled</span><span class="p">(</span><span class="n">toFit</span> <span class="nv">size</span><span class="p">:</span> <span class="kt">CGSize</span><span class="p">,</span> <span class="nv">scale</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>size</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The size to use when scaling the new image.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>scale</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The scale to set for the new image. Defaults to <code>nil</code> which will maintain the current image scale.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A new image object.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE17imageAspectScaled6toFill5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF"></a>
                    <a name="//apple_ref/swift/Method/imageAspectScaled(toFill:scale:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE17imageAspectScaled6toFill5scaleAFSo6CGSizeV_12CoreGraphics7CGFloatVSgtF">imageAspectScaled(toFill:<wbr>scale:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image scaled from the center while maintaining the aspect ratio to fill a
specified size. Any pixels that fall outside the specified size are clipped.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageAspectScaled</span><span class="p">(</span><span class="n">toFill</span> <span class="nv">size</span><span class="p">:</span> <span class="kt">CGSize</span><span class="p">,</span> <span class="nv">scale</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>size</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The size to use when scaling the new image.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>scale</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The scale to set for the new image. Defaults to <code>nil</code> which will maintain the current image scale.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A new image object.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE12imageRounded16withCornerRadius06dividei2ByC5ScaleAF12CoreGraphics7CGFloatV_SbtF"></a>
                    <a name="//apple_ref/swift/Method/imageRounded(withCornerRadius:divideRadiusByImageScale:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE12imageRounded16withCornerRadius06dividei2ByC5ScaleAF12CoreGraphics7CGFloatV_SbtF">imageRounded(withCornerRadius:<wbr>divideRadiusByImageScale:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image with the corners rounded to the specified radius.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageRounded</span><span class="p">(</span><span class="n">withCornerRadius</span> <span class="nv">radius</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">divideRadiusByImageScale</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>radius</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The radius to use when rounding the new image.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>divideRadiusByImageScale</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Whether to divide the radius by the image scale. Set to <code>true</code> when the image has
                      the same resolution for all screen scales such as @1x, @2x and @3x (i.e. single
                      image from web server). Set to <code>false</code> for images loaded from an asset catalog
                      with varying resolutions for each screen scale. <code>false</code> by default.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A new image object.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE22imageRoundedIntoCircleAFyF"></a>
                    <a name="//apple_ref/swift/Method/imageRoundedIntoCircle()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE22imageRoundedIntoCircleAFyF">imageRoundedIntoCircle()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image rounded into a circle.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageRoundedIntoCircle</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A new image object.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE13imageFiltered08withCoreC6Filter10parametersAFSgSS_SDySSypGSgtF"></a>
                    <a name="//apple_ref/swift/Method/imageFiltered(withCoreImageFilter:parameters:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo7UIImageCRbzlE13imageFiltered08withCoreC6Filter10parametersAFSgSS_SDySSypGSgtF">imageFiltered(withCoreImageFilter:<wbr>parameters:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a new version of the image using a CoreImage filter with the specified name and parameters.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">imageFiltered</span><span class="p">(</span><span class="n">withCoreImageFilter</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">parameters</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">]?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIImage</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the CoreImage filter to use on the new image.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>parameters</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The parameters to apply to the CoreImage filter.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A new image object, or <code>nil</code> if the filter failed for any reason.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Properties2"></a>
                <a name="//apple_ref/swift/Section/Properties" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Properties2"></a>
                  <h3 class="section-name"><p>Properties</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE15imageDownloaderAD0cG0CSgvp"></a>
                    <a name="//apple_ref/swift/Property/imageDownloader" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE15imageDownloaderAD0cG0CSgvp">imageDownloader</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The instance image downloader used to download all images. If this property is <code>nil</code>, the <code>UIImageView</code> will
fallback on the <code><a href="../Extensions/AlamofireExtension.html#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE06sharedC10DownloaderAD0cF0CvpZ">sharedImageDownloader</a></code> for all downloads. The most common use case for needing to use a custom
instance image downloader is when images are behind different basic auth credentials.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">imageDownloader</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">nonmutating</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE06sharedC10DownloaderAD0cG0CvpZ"></a>
                    <a name="//apple_ref/swift/Variable/sharedImageDownloader" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE06sharedC10DownloaderAD0cG0CvpZ">sharedImageDownloader</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The shared image downloader used to download all images. By default, this is the default <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>
instance backed with an <code><a href="../Classes/AutoPurgingImageCache.html">AutoPurgingImageCache</a></code> which automatically evicts images from the cache when the memory
capacity is reached or memory warning notifications occur. The shared image downloader is only used if the
<code><a href="../Extensions/AlamofireExtension.html#/s:9Alamofire0A9ExtensionV0A5ImageSo8UIButtonCRbzlE15imageDownloaderAD0cF0CSgvp">imageDownloader</a></code> is <code>nil</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">sharedImageDownloader</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Image%20Download"></a>
                <a name="//apple_ref/swift/Section/Image Download" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Image%20Download"></a>
                  <h3 class="section-name"><p>Image Download</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE03setC07withURL8cacheKey011placeholderC010serializer6filter8progress0N5Queue15imageTransition03runcQ8IfCached10completiony10Foundation0H0V_SSSgSo0D0CSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCAfDE0cQ0OSbyAA04DataW0VyAwD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setImage(withURL:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:imageTransition:runImageTransitionIfCached:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE03setC07withURL8cacheKey011placeholderC010serializer6filter8progress0N5Queue15imageTransition03runcQ8IfCached10completiony10Foundation0H0V_SSSgSo0D0CSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCAfDE0cQ0OSbyAA04DataW0VyAwD8AFIErrorOGcSgtF">setImage(withURL:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>imageTransition:<wbr>runImageTransitionIfCached:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL, applies the specified image filter to the downloaded
image and sets it once finished while executing the image transition.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

<p>The <code>completion</code> closure is called after the image download and filtering are complete, but before the start of
the image transition. Please note it is no longer the responsibility of the <code>completion</code> closure to set the
image. It will be set automatically. If you require a second notification after the image transition completes,
use a <code>.Custom</code> image transition with a <code>completion</code> closure. The <code>.Custom</code> <code>completion</code> closure is called when
the image transition is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setImage</span><span class="p">(</span><span class="n">withURL</span> <span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span>
                     <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                     <span class="nv">imageTransition</span><span class="p">:</span> <span class="kt">UIImageView</span><span class="o">.</span><span class="kt">ImageTransition</span> <span class="o">=</span> <span class="o">.</span><span class="n">noTransition</span><span class="p">,</span>
                     <span class="nv">runImageTransitionIfCached</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span>
                     <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>url</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL used for the image request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults
                                    to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If
                                    <code>nil</code>, the image view will not change its image until the image
                                    request finishes. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>.
                                    Defaults to <code>nil</code> which will fall back to the
                                    instance <code>imageResponseSerializer</code> set on the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is
                                    finished. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the
                                    request. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the
                                    main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>imageTransition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image transition animation applied to the image when set.
                                    Defaults to <code>.None</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>runImageTransitionIfCached</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Whether to run the image transition if the image is cached. Defaults
                                    to <code>false</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure
                                    has no return value and takes three arguments: the original request,
                                    the response from the server and the result containing either the
                                    image or the error that occurred. If the image was returned from the
                                    image cache, the response will be <code>nil</code>. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE03setC014withURLRequest8cacheKey011placeholderC010serializer6filter8progress0N5Queue15imageTransition03runcQ8IfCached10completionyAA0H11Convertible_p_SSSgSo0D0CSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCAfDE0cQ0OSbyAA04DataW0VyAuD8AFIErrorOGcSgtF"></a>
                    <a name="//apple_ref/swift/Method/setImage(withURLRequest:cacheKey:placeholderImage:serializer:filter:progress:progressQueue:imageTransition:runImageTransitionIfCached:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE03setC014withURLRequest8cacheKey011placeholderC010serializer6filter8progress0N5Queue15imageTransition03runcQ8IfCached10completionyAA0H11Convertible_p_SSSgSo0D0CSgAD0C18ResponseSerializerCSgAD0C6Filter_pSgySo10NSProgressCcSgSo17OS_dispatch_queueCAfDE0cQ0OSbyAA04DataW0VyAuD8AFIErrorOGcSgtF">setImage(withURLRequest:<wbr>cacheKey:<wbr>placeholderImage:<wbr>serializer:<wbr>filter:<wbr>progress:<wbr>progressQueue:<wbr>imageTransition:<wbr>runImageTransitionIfCached:<wbr>completion:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Asynchronously downloads an image from the specified URL Request, applies the specified image filter to the downloaded
image and sets it once finished while executing the image transition.</p>

<p>If the image is cached locally, the image is set immediately. Otherwise the specified placeholder image will be
set immediately, and then the remote image will be set once the image request is finished.</p>

<p>The <code>completion</code> closure is called after the image download and filtering are complete, but before the start of
the image transition. Please note it is no longer the responsibility of the <code>completion</code> closure to set the
image. It will be set automatically. If you require a second notification after the image transition completes,
use a <code>.Custom</code> image transition with a <code>completion</code> closure. The <code>.Custom</code> <code>completion</code> closure is called when
the image transition is finished.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setImage</span><span class="p">(</span><span class="n">withURLRequest</span> <span class="nv">urlRequest</span><span class="p">:</span> <span class="kt">URLRequestConvertible</span><span class="p">,</span>
                     <span class="nv">cacheKey</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">placeholderImage</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">serializer</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageResponseSerializer.html">ImageResponseSerializer</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">filter</span><span class="p">:</span> <span class="kt"><a href="../Protocols/ImageFilter.html">ImageFilter</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progress</span><span class="p">:</span> <span class="kt"><a href="../Classes/ImageDownloader.html">ImageDownloader</a></span><span class="o">.</span><span class="kt">ProgressHandler</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                     <span class="nv">progressQueue</span><span class="p">:</span> <span class="kt">DispatchQueue</span> <span class="o">=</span> <span class="kt">DispatchQueue</span><span class="o">.</span><span class="n">main</span><span class="p">,</span>
                     <span class="nv">imageTransition</span><span class="p">:</span> <span class="kt">UIImageView</span><span class="o">.</span><span class="kt">ImageTransition</span> <span class="o">=</span> <span class="o">.</span><span class="n">noTransition</span><span class="p">,</span>
                     <span class="nv">runImageTransitionIfCached</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span>
                     <span class="nv">completion</span><span class="p">:</span> <span class="p">((</span><span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage15AFIDataResponsea">AFIDataResponse</a></span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>urlRequest</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The URL request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>cacheKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional key used to identify the image in the cache. Defaults
                                    to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>placeholderImage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to be set initially until the image request finished. If
                                    <code>nil</code>, the image view will not change its image until the image
                                    request finishes. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>serializer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image response serializer used to convert the image data to <code>UIImage</code>.
                                    Defaults to <code>nil</code> which will fall back to the
                                    instance <code>imageResponseSerializer</code> set on the <code><a href="../Classes/ImageDownloader.html">ImageDownloader</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>filter</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image filter applied to the image after the image request is
                                    finished. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progress</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be executed periodically during the lifecycle of the
                                    request. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>progressQueue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The dispatch queue to call the progress closure on. Defaults to the
                                    main queue.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>imageTransition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image transition animation applied to the image when set.
                                    Defaults to <code>.None</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>runImageTransitionIfCached</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Whether to run the image transition if the image is cached. Defaults
                                    to <code>false</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure to be executed when the image request finishes. The closure
                                    has no return value and takes three arguments: the original request,
                                    the response from the server and the result containing either the
                                    image or the error that occurred. If the image was returned from the
                                    image cache, the response will be <code>nil</code>. Defaults to <code>nil</code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Image%20Download%20Cancellation"></a>
                <a name="//apple_ref/swift/Section/Image Download Cancellation" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Image%20Download%20Cancellation"></a>
                  <h3 class="section-name"><p>Image Download Cancellation</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE06cancelC7RequestyyF"></a>
                    <a name="//apple_ref/swift/Method/cancelImageRequest()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE06cancelC7RequestyyF">cancelImageRequest()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Cancels the active download request, if one exists.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">cancelImageRequest</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Image%20Transition"></a>
                <a name="//apple_ref/swift/Section/Image Transition" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Image%20Transition"></a>
                  <h3 class="section-name"><p>Image Transition</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE3run_4withyAfDE0C10TransitionO_So0D0CtF"></a>
                    <a name="//apple_ref/swift/Method/run(_:with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9Alamofire0A9ExtensionV0A5ImageSo11UIImageViewCRbzlE3run_4withyAfDE0C10TransitionO_So0D0CtF">run(_:<wbr>with:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Runs the image transition on the image view with the specified image.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">run</span><span class="p">(</span><span class="n">_</span> <span class="nv">imageTransition</span><span class="p">:</span> <span class="kt">UIImageView</span><span class="o">.</span><span class="kt">ImageTransition</span><span class="p">,</span> <span class="n">with</span> <span class="nv">image</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:14AlamofireImage0B0a">Image</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>imageTransition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image transition to ran on the image view.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>image</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The image to use for the image transition.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </section>

      </article>
    </div>
    <section class="footer">
      <p>&copy; 2021 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2021-04-03)</p>
      <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
    </section>
  </body>
</div>
</html>
